<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>注册页</title>
</head>
<body>
<h1>注册页</h1>
<div style="color:red;" name="message">
  {% if message %}
 <a href="/login/" style="font-size: 25px;
">{{ message }}</a>

  {% endif %}

</div><br>
<form action="/register/" method="post">
  {%csrf_token%}
  <label>用户名：</label>
  <input type="text" name="username" placeholder="用户名1-20个字（特殊符号禁止）"><br>
  <br>
  <label>密码：&nbsp;&nbsp;</label>
  <input type="password" name="password" placeholder="1-20字符"><br>
  <br>
  <label>邮箱：</label>
  <input type="email" name="email" placeholder="请输入邮箱" required="required"><br>
  <br>
  <input type="submit" value="确认注册">
</form>
</body>
</html>